import request from '@/utils/request'
const api_courser_name = '/edu/service/front/course'
export default {
  // 分页查询课程列表
  getCourseList(page, limit, searchObj) {
    return request({
      url: `${api_courser_name}/getCourseFrontList/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  // 查询所有的分类
  getAllSubject() {
    return request({
      url: `/edu/service/subject/getAllSubject`,
      method: 'get',
    })
  },
  // 根据课程Id查询所有信息
  getCourseInfo(courseId){
    return request({
      url: `${api_courser_name}/getCourseFrontInfo/${courseId}`,
      method: 'get',
    })
  }
}